﻿package frEngine.loaders.particleSub.particleInstance
{
    import __AS3__.vec.*;

    public class MeshBase extends Object
    {
        public var vertexVector:Vector.<Number>;
        public var indexVector:Vector.<uint>;
        public var hasNormal:Boolean;
        public var useAlpha:Boolean;
        public var sizePerVertex:uint = 5;
        public var numVertex:uint = 0;
        public var hasLoaded:Boolean = true;
        private var _uvOffset:uint = 3;
        public var callBack:Function;

        public function MeshBase(param1:uint, param2:uint, param3:Boolean, param4:Boolean)
        {
            this.numVertex = param1;
            this.sizePerVertex = param2;
            this.hasNormal = param3;
            this.useAlpha = param4;
            return;
        }// end function

        public function clear() : void
        {
            this.vertexVector = null;
            this.indexVector = null;
            this.callBack = null;
            return;
        }// end function

        public function get uvOffset() : uint
        {
            return this.useAlpha ? (4) : (3);
        }// end function

        public function dispose() : void
        {
            this.callBack = null;
            return;
        }// end function

    }
}
